package chapter11;

public class Day8 {
    public static void main(String[] args) {
        int []arr = new int[20];
        for (int i = 0; i < arr.length; i++) {
            arr[i] = (int)(Math.random()*100);
        }
        int max = arr[0];
        int Tuo = 0;
        for (int i = 0; i < arr.length; i++) {
            if (max<arr[i]){
                Tuo = max;
                max=arr[i];
            }
        }
        System.out.println("第二大的数；"+Tuo);

    }
}
